<?php if($this->uri->segment(1) == "" && false):?>
<div id="video_main_menu">
	<ul>
		<li class="menu1 ckd">
			<a href="javascript:void(0);">วีดีโอ</a>
		</li>
		<li class="menu2">
			<a href="javascript:void(0);">มิวสิควีดีโอ</a>
		</li>
		<li class="menu3">
			<a href="javascript:void(0);">คลิปการแสดงสด</a>
		</li>
		<li class="menu4">
			<a href="javascript:void(0);">คลิปสัมภาษณ์</a>
		</li>
		<li class="menu5">
			<a href="javascript:void(0);">คลิปเด็ด</a>
		</li>
		<li class="menu6">
			<a href="javascript:void(0);">ยูทูเพลย์ทีวี</a>
		</li>
	</ul>
</div>
<div id="slide_show">
	<div id="slide_1">
		<div class="hilight">วีดีโอไฮไลท์</div>
	<?php if(!empty($slide_show)): ?>
		<div class="cycleElementsContainer" id="slider1">
			<ul>
			<?php foreach($slide_show as $value):?>
				<li>
				<div class="slideItem">
				<a class="_player" target="_blank" href="<?php echo $video_url.'play/'.$value->video_id.'-'.seo_url($value->video_name);?>">
					<div class="thumb">
						<?php echo exec_image(array(
							'folder' => 'video',
							'dimension' => '213x136',
							'file_name' => @$value->video_thumb_name.'.'.@$value->video_thumb_ext,
							'alt' => ''.@$value->video_name.'',	
							'title' => ''.@$value->video_name.''	
							)
						);?>
					</div>
					</a>
					<div class="title">
						<a class="_player" target="_blank" href="<?php echo $video_url.'play/'.$value->video_id.'-'.seo_url($value->video_name);?>">
							<?php echo $value->video_name;?>
						</a>
					</div>
					<div class="artist">
						<?php if(!empty($value->artist)) foreach($value->artist as $key => $artist):?>
							<?php echo ($key==0 ? '':'/');?>
							<a href="<?php echo $artist_url.'summary/'.$artist->artist_id.'-'.seo_url($artist->artist_name);?>" target="_blank"><?php echo $artist->artist_name;?></a>
						<?php endforeach;?>
					</div>
					<div class="view">
						ดู <?php echo $value->views;?> ครั้ง
					</div>
				</div>
				</li>
			<?php endforeach;?>
			</ul>
		</div>
	<?php endif;?>
	</div>

	<div id="slide_2">
		<div class="hilight">มิวสิควีดีโอไฮไลท์</div>
	<?php if(!empty($slide_mv)): ?>
		<div class="cycleElementsContainer" id="slider2">
			<ul>
			<?php foreach($slide_mv as $value):?>
				<li>
				<div class="slideItem">
				<a class="_player" target="_blank" href="<?php echo $video_url.'play/'.$value->video_id.'-'.seo_url($value->video_name);?>">
					<div class="thumb">
						<?php echo exec_image(array(
							'folder' => 'video',
							'dimension' => '213x136',
							'file_name' => @$value->video_thumb_name.'.'.@$value->video_thumb_ext,
							'alt' => ''.@$value->video_name.'',	
							'title' => ''.@$value->video_name.''	
							)
						);?>
					</div>
					</a>
					<div class="title">
						<a class="_player" target="_blank" href="<?php echo $video_url.'play/'.$value->video_id.'-'.seo_url($value->video_name);?>">
							<?php echo $value->video_name;?>
						</a>
					</div>
					<div class="artist">
						<?php if(!empty($value->artist)) foreach($value->artist as $key => $artist):?>
							<?php echo ($key==0 ? '':'/');?>
							<a href="<?php echo $artist_url.'summary/'.$artist->artist_id.'-'.seo_url($artist->artist_name);?>" target="_blank"><?php echo $artist->artist_name;?></a>
						<?php endforeach;?>
					</div>
					<div class="view">
						ดู <?php echo $value->views;?> ครั้ง
					</div>
				</div>
				</li>
			<?php endforeach;?>
			</ul>
		</div>
	<?php endif;?>
	</div>
	
	<div id="slide_3">
		<div class="hilight">คลิปการแสดงสดไฮไลท์</div>
	<?php if(!empty($slide_concert)): ?>
		<div class="cycleElementsContainer" id="slider3">
			<ul>
			<?php foreach($slide_concert as $value):?>
				<li>
				<div class="slideItem">
				<a class="_player" target="_blank" href="<?php echo $video_url.'play/'.$value->video_id.'-'.seo_url($value->video_name);?>">
					<div class="thumb">
						<?php echo exec_image(array(
							'folder' => 'video',
							'dimension' => '213x136',
							'file_name' => @$value->video_thumb_name.'.'.@$value->video_thumb_ext,
							'alt' => ''.@$value->video_name.'',	
							'title' => ''.@$value->video_name.''	
							)
						);?>
					</div>
					</a>
					<div class="title">
						<a class="_player" target="_blank" href="<?php echo $video_url.'play/'.$value->video_id.'-'.seo_url($value->video_name);?>">
							<?php echo $value->video_name;?>
						</a>
					</div>
					<div class="artist">
						<?php if(!empty($value->artist)) foreach($value->artist as $key => $artist):?>
							<?php echo ($key==0 ? '':'/');?>
							<a href="<?php echo $artist_url.'summary/'.$artist->artist_id.'-'.seo_url($artist->artist_name);?>" target="_blank"><?php echo $artist->artist_name;?></a>
						<?php endforeach;?>
					</div>
					<div class="view">
						ดู <?php echo $value->views;?> ครั้ง
					</div>
				</div>
				</li>
			<?php endforeach;?>
			</ul>
		</div>
	<?php endif;?>
	</div>
	
	<div id="slide_4">
		<div class="hilight">คลิปสัมภาษณ์ไฮไลท์</div>
	<?php if(!empty($slide_interview)): ?>
		<div class="cycleElementsContainer" id="slider4">
			<ul>
			<?php foreach($slide_interview as $value):?>
				<li>
				<div class="slideItem">
				<a class="_player" target="_blank" href="<?php echo $video_url.'play/'.$value->video_id.'-'.seo_url($value->video_name);?>">
					<div class="thumb">
						<?php echo exec_image(array(
							'folder' => 'video',
							'dimension' => '213x136',
							'file_name' => @$value->video_thumb_name.'.'.@$value->video_thumb_ext,
							'alt' => ''.@$value->video_name.'',	
							'title' => ''.@$value->video_name.''	
							)
						);?>
					</div>
					</a>
					<div class="title">
						<a class="_player" target="_blank" href="<?php echo $video_url.'play/'.$value->video_id.'-'.seo_url($value->video_name);?>">
							<?php echo $value->video_name;?>
						</a>
					</div>
					<div class="artist">
						<?php if(!empty($value->artist)) foreach($value->artist as $key => $artist):?>
							<?php echo ($key==0 ? '':'/');?>
							<a href="<?php echo $artist_url.'summary/'.$artist->artist_id.'-'.seo_url($artist->artist_name);?>" target="_blank"><?php echo $artist->artist_name;?></a>
						<?php endforeach;?>
					</div>
					<div class="view">
						ดู <?php echo $value->views;?> ครั้ง
					</div>
				</div>
				</li>
			<?php endforeach;?>
			</ul>
		</div>
	<?php endif;?>
	</div>
	
	<div id="slide_5">
		<div class="hilight">คลิปเบื้องหลังไฮไลท์</div>
	<?php if(!empty($slide_behind_scence)): ?>
		<div class="cycleElementsContainer" id="slider5">
			<ul>
			<?php foreach($slide_behind_scence as $value):?>
				<li>
				<div class="slideItem">
				<a class="_player" target="_blank" href="<?php echo $video_url.'play/'.$value->video_id.'-'.seo_url($value->video_name);?>">
					<div class="thumb">
						<?php echo exec_image(array(
							'folder' => 'video',
							'dimension' => '213x136',
							'file_name' => @$value->video_thumb_name.'.'.@$value->video_thumb_ext,
							'alt' => ''.@$value->video_name.'',	
							'title' => ''.@$value->video_name.''	
							)
						);?>
					</div>
					</a>
					<div class="title">
						<a class="_player" target="_blank" href="<?php echo $video_url.'play/'.$value->video_id.'-'.seo_url($value->video_name);?>">
							<?php echo $value->video_name;?>
						</a>
					</div>
					<div class="artist">
						<?php if(!empty($value->artist)) foreach($value->artist as $key => $artist):?>
							<?php echo ($key==0 ? '':'/');?>
							<a href="<?php echo $artist_url.'summary/'.$artist->artist_id.'-'.seo_url($artist->artist_name);?>" target="_blank"><?php echo $artist->artist_name;?></a>
						<?php endforeach;?>
					</div>
					<div class="view">
						ดู <?php echo $value->views;?> ครั้ง
					</div>
				</div>
				</li>
			<?php endforeach;?>
			</ul>
		</div>
	<?php endif;?>
	</div>
	
	<div id="slide_6">
		<div class="hilight">ยูทูเพลย์ทีวีไฮไลท์</div>
	<?php if(!empty($slide_you2playtv)): ?>
		<div class="cycleElementsContainer" id="slider6">
		<ul>
			<?php foreach($slide_you2playtv as $value):?>
			<li>
				<div class="slideItem">
				<a class="_player" target="_blank" href="<?php echo $video_url.'play/'.$value->video_id.'-'.seo_url($value->video_name);?>">
					<div class="thumb">
						<?php echo exec_image(array(
							'folder' => 'video',
							'dimension' => '213x136',
							'file_name' => @$value->video_thumb_name.'.'.@$value->video_thumb_ext,
							'alt' => ''.@$value->video_name.'',	
							'title' => ''.@$value->video_name.''	
							)
						);?>
					</div>
					</a>
					<div class="title">
						<a class="_player" target="_blank" href="<?php echo $video_url.'play/'.$value->video_id.'-'.seo_url($value->video_name);?>">
							<?php echo $value->video_name;?>
						</a>
					</div>
					<div class="artist">
						<?php if(!empty($value->artist)) foreach($value->artist as $key => $artist):?>
							<?php echo ($key==0 ? '':'/');?>
							<a href="<?php echo $artist_url.'summary/'.$artist->artist_id.'-'.seo_url($artist->artist_name);?>" target="_blank"><?php echo $artist->artist_name;?></a>
						<?php endforeach;?>
					</div>
					<div class="view">
						ดู <?php echo $value->views;?> ครั้ง
					</div>
				</div>
			</li>
			<?php endforeach;?>
		</ul>
		</div>
	<?php endif;?>
	</div>
	<div id="video_hilight_arrow1">
		<div id="cycle-prev1"></div>
		<div id="cycle-next1"></div>
	</div>
	<div id="video_hilight_arrow2" class="hidden">
		<div id="cycle-prev2"></div>
		<div id="cycle-next2"></div>
	</div>
	<div id="video_hilight_arrow3" class="hidden">>
		<div id="cycle-prev3"></div>
		<div id="cycle-next3"></div>
	</div>
	<div id="video_hilight_arrow4" class="hidden">>
		<div id="cycle-prev4"></div>
		<div id="cycle-next4"></div>
	</div>
	<div id="video_hilight_arrow5" class="hidden">>
		<div id="cycle-prev5"></div>
		<div id="cycle-next5"></div>
	</div>
	<div id="video_hilight_arrow6" class="hidden">>
		<div id="cycle-prev6"></div>
		<div id="cycle-next6"></div>
	</div>					
</div>
<script type="text/javascript" language="javascript">
(function($) {
/*whatever jQuery stuff*/
	$(function(){
		//multipleElementsCycle
		$("#slider1").multipleElementsCycle({
			scrollCount: 4,
			start: 0,
			prev: '#cycle-prev1',	// Selector to scroll previous (selector)
			next: '#cycle-next1', 	// Selector to scroll next (selector)			
		});
		//multipleElementsCycle
		$("#slider2").multipleElementsCycle({
			scrollCount: 4,
			start: 0,
			prev: '#cycle-prev2',	// Selector to scroll previous (selector)
			next: '#cycle-next2', 	// Selector to scroll next (selector)				
		});
		//multipleElementsCycle
		$("#slider3").multipleElementsCycle({
			scrollCount: 4,
			start: 0,
			prev: '#cycle-prev3',	// Selector to scroll previous (selector)
			next: '#cycle-next3', 	// Selector to scroll next (selector)				
		});
		//multipleElementsCycle
		$("#slider4").multipleElementsCycle({
			scrollCount: 4,
			start: 0,
			prev: '#cycle-prev4',	// Selector to scroll previous (selector)
			next: '#cycle-next4', 	// Selector to scroll next (selector)				
		});
		//multipleElementsCycle
		$("#slider5").multipleElementsCycle({
			scrollCount: 4,
			start: 0,
			prev: '#cycle-prev5',	// Selector to scroll previous (selector)
			next: '#cycle-next5', 	// Selector to scroll next (selector)				
		});
		//multipleElementsCycle
		$("#slider6").multipleElementsCycle({
			scrollCount: 4,
			start: 0,
			prev: '#cycle-prev6',	// Selector to scroll previous (selector)
			next: '#cycle-next6', 	// Selector to scroll next (selector)				
		});
	});	
})(jQuery);
</script>
<?php else:?>
<div id="video_main_menu">
	<ul>
		<li class="menu1">
			<a href="<?php echo $video_url;?>">วีดีโอ</a>
		</li>
		<li class="menu2<?php echo ($this->router->method == "mv" ? ' ckd':'');?>">
			<a href="<?php echo $video_url.'mv/new_released';?>">มิวสิควีดีโอ</a>
		</li>
		<li class="menu3<?php echo ($this->router->method == "concert" ? ' ckd':'');?>">
			<a href="<?php echo $video_url.'concert/new_released';?>">คลิปการแสดงสด</a>
		</li>
		<li class="menu4<?php echo ($this->router->method == "interview" ? ' ckd':'');?>">
			<a href="<?php echo $video_url.'interview/new_released';?>">คลิปสัมภาษณ์</a>
		</li>
		<li class="menu5<?php echo ($this->router->method == "behind_scence" ? ' ckd':'');?>">
			<a href="<?php echo $video_url.'behind_scence/new_released';?>">คลิปเด็ด</a>
		</li>
		<li class="menu6<?php echo ($this->router->method == "you2playtv" ? ' ckd':'');?>">
			<a href="<?php echo $video_url.'you2playtv';?>">ยูทูเพลย์ทีวี</a>
		</li>
	</ul>
</div>
<?php endif;?>